import request from '@/utils/request'

/* 工程协同关键工序执行情况查询
* @query
* */
export function getKeyProcessExecution(query) {
  return request({
    url: '/gcxt/report/getKeyProcessExecution',
    method: 'post',
    timeout: 0,
    data: query
  })
}

export function downloadProcessExecuteExcel(query) {
  return request({
    url: '/gcxt/report/downloadProcessExecuteExcel',
    timeout: 300000,
    method: 'get',
    params: query,
    responseType: 'blob'
  }, {
    source: true
  })
}

export function downloadBeProcessExecuteExcel(query) {
  return request({
    url: '/gcxt/report/downloadBeProcessExecuteExcel',
    timeout: 300000,
    method: 'get',
    params: query,
    responseType: 'blob'
  }, {
    source: true
  })
}

export function downloadProcessCompleteRate(query) {
  return request({
    url: '/gcxt/report/downloadProcessCompleteRate',
    timeout: 300000,
    method: 'get',
    params: query,
    responseType: 'blob'
  }, {
    source: true
  })
}

/* 工程协同关键工序执行情况查询
* @query
* */
export function getProcessCompleteRate(query) {
  return request({
    url: '/gcxt/report/getProcessCompleteRate',
    method: 'get',
    timeout: 0,
    params: query
  })
}

/* 查询  工程协同关键工序验收及时率统计
* @query :{beginDate : '', endDate: ''}
* */
export function getKeyTimelyRate(query) {
  return request({
    url: '/gcxt/report/getKeyTimelyRate',
    method: 'get',
    timeout: 0,
    params: query
  })
}

/* 查询  工程协同基础工程关键工序验收及时率统计
* @query :{beginDate : '', endDate: ''}
* */
export function getBeKeyTimelyRate(query) {
  return request({
    url: '/gcxt/report/getBeKeyTimelyRate',
    method: 'get',
    timeout: 0,
    params: query
  })
}

/* 查询  工程协同精装标段关键工序验收及时率统计
* @query :{beginDate : '', endDate: ''}
* */
export function getJzKeyTimelyRate(query) {
  return request({
    url: '/gcxt/report/getJzKeyTimelyRate',
    method: 'get',
    timeout: 0,
    params: query
  })
}
/* 工程协同关键工序验收及时率统计-下载
* @query :{beginDate : '', endDate: ''}
* */
export function downloadKeyTimelyRate(query) {
  return request({
    url: '/gcxt/report/downloadExcel',
    timeout: 300000,
    method: 'get',
    params: query,
    responseType: 'blob'
  }, {
    source: true
  })
}

/* 工程协同关键工序验收及时率统计-下载
* @query :{beginDate : '', endDate: ''}
* */
export function downloadBeKeyTimelyRate(query) {
  return request({
    url: '/gcxt/report/downloadBeExcel',
    timeout: 300000,
    method: 'get',
    params: query,
    responseType: 'blob'
  }, {
    source: true
  })
}

/* 查询  工程协同未及时验收的工序验收批次
* @query :{beginDate : '', endDate: ''}
* */
export function getNoTimelyFinishedBatch(query) {
  return request({
    url: '/gcxt/report/getNoTimelyFinishedBatch',
    method: 'get',
    timeout: 0,
    params: query
  })
}

/* 查询  工程协同未验收的工序批次
* @query :{beginDate : '', endDate: ''}
* */
export function getNoFinishedBatch(query) {
  return request({
    url: '/gcxt/report/getNoFinishedBatch',
    method: 'get',
    timeout: 0,
    params: query
  })
}

/**
 * 基础工程 工序执行情况
 */
export function getBeKeyProcessExecution(query) {
  return request({
    url: '/gcxt/report/getBeKeyProcessExecution',
    method: 'get',
    timeout: 0,
    params: query
  })
}
